# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=thc-keyfinder
pkgver=1.0
pkgrel=2
groups=('blackarch' 'blackarch-cracker')
pkgdesc='Finds crypto keys, encrypted data and compressed data in files by analyzing the entropy of parts of the file.'
url='https://www.thc.org/releases.php'
arch=('x86_64' 'aarch64')
license=('GPL2')
makedepends=('gcc')
DLAGENTS=("https::/usr/bin/curl -4k -o %o %u")
source=('https://www.thc.org/releases/keyfinder.c')
sha512sums=('7c47b2aef4a6c2c170fa029e2e9818a0d0142610f78311f45d9f35461959a68710e7ded37d8b7dbb9efe87b2f8d3432c0a8f5aefcef4811c596569bd25a2fc60')

build() {
  gcc -o keyfinder keyfinder.c -lm
}

package() {
  install -Dm 755 keyfinder "$pkgdir/usr/bin/keyfinder"
}

